import Main from '@/views/main.vue';
import IFrame from '@/components/IFrame'
import ChildView from '@/components/ChildView'

export default [
    {
        path: '/profile',
        name: 'profile',
        meta: {
            title: '个人信息',
            hideInMenu: true
        },
        component: Main,
        children: [
            {
                path: 'info',
                name: 'info',
                meta: {
                    title: '我的信息',
                    hideInMenu: false
                },
                component: () => import('@/views/profile/index.vue')
            }
        ]
    },

    {
        path: '/system',
        name: 'system',
        meta: {
            icon: 'el-icon-menu',
            title: '系统管理',
            access: ['system:page']
        },
        component: Main,
        children: [
            {
                path: 'user',
                name: 'user',
                meta: {
                    icon: 'el-icon-menu',
                    title: '用户管理',
                    access: ['system:user:page']
                },
                component: () => import('@/views/system/sysuser/index.vue')
            },
            {
                path: 'role',
                name: 'role',
                meta: {
                    icon: 'el-icon-menu',
                    title: '角色管理',
                    access: ['system:role:page']
                },
                component: () => import('@/views/system/sysrole/index.vue')
            },
            {
                path: 'permission',
                name: 'permission',
                meta: {
                    icon: 'el-icon-menu',
                    title: '权限管理',
                    access: ['system:permission:page']
                },
                component: () => import('@/views/system/sysmenu/index.vue')
            },
            {
                path: 'dict',
                name: 'dict',
                meta: {
                    icon: 'el-icon-menu',
                    title: '字典管理',
                    access: ['system:dict:page']
                },
                component: () => import('@/views/system/sysdict/index.vue')
            }
        ]
    },

    // 系统监控
    // {
    //     path: '/systemMonitor',
    //     name: 'systemMonitor',
    //     meta: {
    //         icon: 'el-icon-menu',
    //         title: '系统监控',
    //         access: ['system:page']
    //     },
    //     component: Main,
    //     children: [

    //         {
    //             path: 'online',
    //             name: 'online',
    //             meta: {
    //                 icon: 'el-icon-menu',
    //                 title: '在线用户',
    //                 access: ['system:online:page']
    //             },
    //             component: () => import('@/views/system/online/index.vue')
    //         },
    //         {
    //             path: 'syslog_login',
    //             name: 'syslog_login',
    //             meta: {
    //                 icon: 'el-icon-menu',
    //                 title: '登录日志',
    //                 access: ['system:syslog_login:page']
    //             },
    //             component: () => import('@/views/system/syslog/login_log.vue')
    //         },
    //         {
    //             path: 'syslog',
    //             name: 'syslog',
    //             meta: {
    //                 icon: 'el-icon-menu',
    //                 title: '系统日志',
    //                 access: ['system:syslog:page']
    //             },
    //             component: () => import('@/views/system/syslog/index.vue')
    //         }
    //     ]
    // },

    // 系统工具
    {
        path: '/systemTools',
        name: 'systemTools',
        meta: {
            icon: 'el-icon-menu',
            title: '系统工具',
            access: ['system:tools:page']
        },
        component: Main,
        children: [

            {
                path: 'scheduler',
                name: 'scheduler',
                meta: {
                    icon: 'el-icon-menu',
                    title: '定时任务',
                    access: ['system:tools:scheduler:page']
                },
                component: () => import('@/views/system/sysschedulerjob/index.vue')
            },
            {
                path: 'email',
                name: 'email',
                meta: {
                    icon: 'el-icon-menu',
                    title: '邮件工具',
                    access: ['system:tools:email:page']
                },
                component: () => import('@/views/system/tools/sendMail.vue')
            },
            {
                path: 'generator',
                name: 'generator',
                meta: {
                    icon: 'el-icon-menu',
                    title: '代码生成器',
                    access: ['system:tools:generator:page']
                },
                component: () => import('@/views/system/generator/index.vue')
            },

        ]
    }
];
